package main

import (
	"github.com/Knetic/govaluate"
	"log"
)

func Pgovaluate(c int) {
	params := createParams()

	expression, err := govaluate.NewEvaluableExpression(example)

	if err != nil {
		log.Fatal(err)
	}

	var out interface{}

	for n := 0; n < c; n++ {
		out, err = expression.Evaluate(params)
	}

	if err != nil {
		log.Fatal(err)
	}
	if !out.(bool) {
		log.Println("result error")
	}
}
